<!DOCTYPE html>
<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8" %>
<%@ include file="../core/core.jsp" %>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <title>修改商品</title>
    <meta name="keywords" content="叮当猫">
    <meta name="description" content="叮当猫">
    <link href="../static/css/summernote.css" rel="stylesheet">
    <link href="../static/css/summernote-bs3.css" rel="stylesheet">
    <link href="../static/css/cropper.min.css" rel="stylesheet">
    <link href="../static/css/sitelogo.css" rel="stylesheet">
    <link rel="stylesheet" href="../static/css/artEditor.css">
    <link rel="stylesheet" href="../static/zyupload/skins/zyupload-1.0.0.min.css " type="text/css">
    <%-- <script type="text/javascript" src="../static/zyupload/jquery-1.7.2.js"></script>--%>
    <script type="text/javascript" src="../static/zyupload/zyupload.drag-1.0.0.min.js"></script>
    <script src="../static/js/photoClip/cropper.js"></script>
    <script src="../static/js/photoClip/sitelogo.js"></script>
    <style>


        table.dataTable thead .sorting:after {
            content: '';
        }
         .spe_title input, .spe_detail input {
            margin-right: 27px;
            margin-bottom: 10px;
        }

        .spe_title img {
            position: absolute;
            top: -10px;
            right: -11px;
            width: 24px;
            height: 24px;
        }

        .spe_detail img {
            position: absolute;
            top: -10px;
            right: 12px;
            width: 24px;
            height: 24px;
        }

        input[type=checkbox] {
            width: 18px;
            height: 18px;
            margin: 0 20px 0 4px;
            vertical-align: middle;
        }


        .oneImgBox img,.oneImgBox2 img{
            width: 66px;
            height: 66px;
            display: block;
        }
        .oneImgBox span,.oneImgBox2 span{
            width: 18px;
            height: 18px;
            font-size: 18px;
            line-height: 18px;
            position: absolute;
            top:0;
            right: 0;
            cursor: pointer;
        }
    </style>
</head>

<body>

<div class="wrapper wrapper-content animated fadeInRight">
    <div id="idBox" style="display: none;"><%=request.getAttribute("id")%></div>
    <div class="ibox-content">
        <form class="form-horizontal m-t" id="commentForm">
            <div class="form-group">
                <label class="col-sm-1 control-label">商品名称：</label>
                <div class="col-sm-8">
                    <input id="name" name="name" type="text" class="form-control" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-1 control-label">规格：</label>
                <div class="col-sm-8">
                    <input id="specificationName" name="specificationName" type="text" class="form-control" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-1 control-label">原价：</label>
                <div class="col-sm-8">
                    <input id="salePrice" name="salePrice" type="text" class="form-control" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-1 control-label">秒杀价：</label>
                <div class="col-sm-8">
                    <input id="seckillPrice" name="seckillPrice" type="text" class="form-control" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-1 control-label">销量：</label>
                <div class="col-sm-8">
                    <input id="saleVolume" name="saleVolume" type="text" class="form-control" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-1 control-label">库存：</label>
                <div class="col-sm-8">
                    <input id="inventory" name="inventory" type="text" class="form-control" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-1 control-label">总库存：</label>
                <div class="col-sm-8">
                    <input id="totalInventory" name="totalInventory" type="text" class="form-control" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-1 control-label">秒杀日期：</label>
                <div class="col-sm-8">
                    <input id="seckillDate" name="seckillPrice" type="text" class="form-control" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-1 control-label">创建者：</label>
                <div class="col-sm-8">
                    <input id="userName" type="text" class="form-control" name="email" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-1 control-label">创建时间：</label>
                <div class="col-sm-8">
                    <input id="createTime" type="text" class="form-control" name="email" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-1 control-label">商品图片：</label>
                <div class="col-sm-8">
                    <div id="imgBox">
                        <%--<img id="mainImg" src="../static/img/uploadImg.png" alt="img" style="width: 66px;height: 66px;">--%>
                    </div>
                </div>
            </div>
        </form>

        <button type="button" class="btn btn-primary" id="save2"
                style="display: none;margin-left: 117px;margin-top: 15px;">保存修改
        </button>
        <div class="btn btn-primary" style="margin-left: 116px" id="editAll">修改秒杀商品信息</div>
        <div class="btn btn-primary" id="shangjia" style="display: none">上架</div>
        <div class="btn btn-primary" id="xiajia" style="display: none">下架</div>
    </div>


</div>


<div class="loading" aria-label="Loading" role="img" tabindex="-1"></div>

<script src="../static/js/ajaxfileupload_v1.js"></script>
<script src="../static/js/photoClip/html2canvas.min.js" type="text/javascript" charset="utf-8"></script>
<!-- SUMMERNOTE -->
<script src="../static/js/plugins/summernote.min.js"></script>
<script src="../static/js/plugins/summernote-zh-CN.js"></script>
<script>
    $(document).ready(function () {

        $('.summernote').summernote({
            lang: 'zh-CN'
        });

    });
    var edit = function () {
        $("#eg").addClass("no-padding");
        $('.click2edit').summernote({
            lang: 'zh-CN',
            focus: true
        });
    };
    var save = function () {
        $("#eg").removeClass("no-padding");
        var aHTML = $('.click2edit').code(); //save HTML If you need(aHTML: array).
        $('.click2edit').destroy();
    };
</script>
<!-- 配置文件 -->
<script type="text/javascript" src="../static/js/ueditor/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="../static/js/ueditor/ueditor.all.min.js"></script>
<script src="../static/js/seckillGoods/details.js" charset="utf-8"></script>
<script>

</script>
</body>

</html>
